<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/framework_config_api.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">framework_config_api.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00060.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2015, dennis wang</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *     * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *     * Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *       documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL dennis wang BE LIABLE FOR ANY</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef FRAMEWORK_CONFIG_API_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define FRAMEWORK_CONFIG_API_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00111_ga45b64d2f395031b60dd33412f55242b4.html#ga45b64d2f395031b60dd33412f55242b4">knet_framework_config_load_config_file</a>(<a class="code" href="a00010.html">kframework_config_t</a>* c, <span class="keyword">const</span> <span class="keywordtype">char</span>* path);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00111_gad468ed615a958baef04c26eb8fe53efd.html#gad468ed615a958baef04c26eb8fe53efd">knet_framework_config_load_config_string</a>(<a class="code" href="a00010.html">kframework_config_t</a>* c, <span class="keyword">const</span> <span class="keywordtype">char</span>* config_string);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga470f4acf8c70060852d435753375fa3b.html#ga470f4acf8c70060852d435753375fa3b">knet_framework_config_set_worker_thread_count</a>(</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="a00010.html">kframework_config_t</a>* c, <span class="keywordtype">int</span> worker_thread_count);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga42497b09d9d0c4039a062ff750ead0a9.html#ga42497b09d9d0c4039a062ff750ead0a9">knet_framework_config_set_worker_timer_freq</a>(</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="a00010.html">kframework_config_t</a>* c, time_t freq);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_gae0c5bc540a44a88d64390845744f736f.html#gae0c5bc540a44a88d64390845744f736f">knet_framework_config_set_worker_timer_slot</a>(</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <a class="code" href="a00010.html">kframework_config_t</a>* c, <span class="keywordtype">int</span> slot);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">extern</span> <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* <a class="code" href="a00111_ga681a7f8e071507cc60f8f56043fe4443.html#ga681a7f8e071507cc60f8f56043fe4443">knet_framework_config_new_acceptor</a>(</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="a00010.html">kframework_config_t</a>* c);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">extern</span> <a class="code" href="a00011.html">kframework_connector_config_t</a>* <a class="code" href="a00111_ga135342b1a0a31db4d614ee96a76d3e46.html#ga135342b1a0a31db4d614ee96a76d3e46">knet_framework_config_new_connector</a>(</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="a00010.html">kframework_config_t</a>* c);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_gae13e628b69405ef9a338980da9475b53.html#gae13e628b69405ef9a338980da9475b53">knet_framework_acceptor_config_set_local_address</a>(</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <span class="keyword">const</span> <span class="keywordtype">char</span>* ip, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_gab236e9cd130017f98625904439052b30.html#gab236e9cd130017f98625904439052b30">knet_framework_acceptor_config_set_backlog</a>(</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <span class="keywordtype">int</span> backlog);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga0f1a47656155b56aa812b07d44a8aa81.html#ga0f1a47656155b56aa812b07d44a8aa81">knet_framework_acceptor_config_set_client_heartbeat_timeout</a>(</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <span class="keywordtype">int</span> timeout);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a.html#ga03a86f8b8fc13e6fb8f1ca75e7f14d7a">knet_framework_acceptor_config_set_client_cb</a>(</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <a class="code" href="a00054_a8a7d96123ef4565c6d08fe58a10476a9.html#a8a7d96123ef4565c6d08fe58a10476a9">knet_channel_ref_cb_t</a> cb);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga23b21427272c85b9730304add2cbd054.html#ga23b21427272c85b9730304add2cbd054">knet_framework_acceptor_config_set_client_max_send_list_count</a>(</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <span class="keywordtype">int</span> max_send_list_count);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga44e90ae8fe6b358dbcd77c447ead94fc.html#ga44e90ae8fe6b358dbcd77c447ead94fc">knet_framework_acceptor_config_set_client_max_recv_buffer_length</a>(</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="a00009.html">kframework_acceptor_config_t</a>* c, <span class="keywordtype">int</span> max_recv_buffer_length);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_gae677441ee9bcc61da7c7728ce3ae773e.html#gae677441ee9bcc61da7c7728ce3ae773e">knet_framework_connector_config_set_remote_address</a>(</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keyword">const</span> <span class="keywordtype">char</span>* ip, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga186f2fb032c5b2350e990c63b5aa628e.html#ga186f2fb032c5b2350e990c63b5aa628e">knet_framework_connector_config_set_heartbeat_timeout</a>(</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keywordtype">int</span> timeout);</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_gacf0d08bb6f135c12326d30acad7456f1.html#gacf0d08bb6f135c12326d30acad7456f1">knet_framework_connector_config_set_connect_timeout</a>(</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keywordtype">int</span> timeout);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga984a212938eb7d5b79fae88c5eeb1644.html#ga984a212938eb7d5b79fae88c5eeb1644">knet_framework_connector_config_set_auto_reconnect</a>(</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keywordtype">int</span> auto_reconnect);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga03024112cca453db282a4aa4af7bedc8.html#ga03024112cca453db282a4aa4af7bedc8">knet_framework_connector_config_set_cb</a>(</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <a class="code" href="a00054_a8a7d96123ef4565c6d08fe58a10476a9.html#a8a7d96123ef4565c6d08fe58a10476a9">knet_channel_ref_cb_t</a> cb);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga32b058fe0a17d4a609097157761bb9f1.html#ga32b058fe0a17d4a609097157761bb9f1">knet_framework_connector_config_set_client_max_send_list_count</a>(</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keywordtype">int</span> max_send_list_count);</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="a00111_ga671b44cb682198b418b21749e6b2fdbe.html#ga671b44cb682198b418b21749e6b2fdbe">knet_framework_connector_config_set_client_max_recv_buffer_length</a>(</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <a class="code" href="a00011.html">kframework_connector_config_t</a>* c, <span class="keywordtype">int</span> max_recv_buffer_length);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FRAMEWORK_CONFIG_API_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="a00111_ga03024112cca453db282a4aa4af7bedc8_html_ga03024112cca453db282a4aa4af7bedc8"><div class="ttname"><a href="a00111_ga03024112cca453db282a4aa4af7bedc8.html#ga03024112cca453db282a4aa4af7bedc8">knet_framework_connector_config_set_cb</a></div><div class="ttdeci">void knet_framework_connector_config_set_cb(kframework_connector_config_t *c, knet_channel_ref_cb_t cb)</div><div class="ttdoc">设置连接器回调函数 </div><div class="ttdef"><b>Definition:</b> framework_config.c:213</div></div>
<div class="ttc" id="a00010_html"><div class="ttname"><a href="a00010.html">_framework_config_t</a></div><div class="ttdef"><b>Definition:</b> framework_config.c:50</div></div>
<div class="ttc" id="a00111_ga23b21427272c85b9730304add2cbd054_html_ga23b21427272c85b9730304add2cbd054"><div class="ttname"><a href="a00111_ga23b21427272c85b9730304add2cbd054.html#ga23b21427272c85b9730304add2cbd054">knet_framework_acceptor_config_set_client_max_send_list_count</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_client_max_send_list_count(kframework_acceptor_config_t *c, int max_send_list_count)</div><div class="ttdoc">设置客户端发送链表最大长度 </div><div class="ttdef"><b>Definition:</b> framework_config.c:177</div></div>
<div class="ttc" id="a00054_a8a7d96123ef4565c6d08fe58a10476a9_html_a8a7d96123ef4565c6d08fe58a10476a9"><div class="ttname"><a href="a00054_a8a7d96123ef4565c6d08fe58a10476a9.html#a8a7d96123ef4565c6d08fe58a10476a9">knet_channel_ref_cb_t</a></div><div class="ttdeci">void(* knet_channel_ref_cb_t)(kchannel_ref_t *, knet_channel_cb_event_e)</div><div class="ttdef"><b>Definition:</b> config.h:293</div></div>
<div class="ttc" id="a00111_gae677441ee9bcc61da7c7728ce3ae773e_html_gae677441ee9bcc61da7c7728ce3ae773e"><div class="ttname"><a href="a00111_gae677441ee9bcc61da7c7728ce3ae773e.html#gae677441ee9bcc61da7c7728ce3ae773e">knet_framework_connector_config_set_remote_address</a></div><div class="ttdeci">void knet_framework_connector_config_set_remote_address(kframework_connector_config_t *c, const char *ip, int port)</div><div class="ttdoc">设置连接器需要连接的地址 </div><div class="ttdef"><b>Definition:</b> framework_config.c:187</div></div>
<div class="ttc" id="a00111_gab236e9cd130017f98625904439052b30_html_gab236e9cd130017f98625904439052b30"><div class="ttname"><a href="a00111_gab236e9cd130017f98625904439052b30.html#gab236e9cd130017f98625904439052b30">knet_framework_acceptor_config_set_backlog</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_backlog(kframework_acceptor_config_t *c, int backlog)</div><div class="ttdoc">设置监听器等待队列长度 </div><div class="ttdef"><b>Definition:</b> framework_config.c:159</div></div>
<div class="ttc" id="a00111_gae0c5bc540a44a88d64390845744f736f_html_gae0c5bc540a44a88d64390845744f736f"><div class="ttname"><a href="a00111_gae0c5bc540a44a88d64390845744f736f.html#gae0c5bc540a44a88d64390845744f736f">knet_framework_config_set_worker_timer_slot</a></div><div class="ttdeci">void knet_framework_config_set_worker_timer_slot(kframework_config_t *c, int slot)</div><div class="ttdoc">设置工作线程内定时器槽位数量 </div><div class="ttdef"><b>Definition:</b> framework_config.c:111</div></div>
<div class="ttc" id="a00111_ga45b64d2f395031b60dd33412f55242b4_html_ga45b64d2f395031b60dd33412f55242b4"><div class="ttname"><a href="a00111_ga45b64d2f395031b60dd33412f55242b4.html#ga45b64d2f395031b60dd33412f55242b4">knet_framework_config_load_config_file</a></div><div class="ttdeci">int knet_framework_config_load_config_file(kframework_config_t *c, const char *path)</div><div class="ttdoc">从文件加载配置 </div><div class="ttdef"><b>Definition:</b> framework_config.c:91</div></div>
<div class="ttc" id="a00111_gae13e628b69405ef9a338980da9475b53_html_gae13e628b69405ef9a338980da9475b53"><div class="ttname"><a href="a00111_gae13e628b69405ef9a338980da9475b53.html#gae13e628b69405ef9a338980da9475b53">knet_framework_acceptor_config_set_local_address</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_local_address(kframework_acceptor_config_t *c, const char *ip, int port)</div><div class="ttdoc">设置监听器本地地址 </div><div class="ttdef"><b>Definition:</b> framework_config.c:148</div></div>
<div class="ttc" id="a00111_gad468ed615a958baef04c26eb8fe53efd_html_gad468ed615a958baef04c26eb8fe53efd"><div class="ttname"><a href="a00111_gad468ed615a958baef04c26eb8fe53efd.html#gad468ed615a958baef04c26eb8fe53efd">knet_framework_config_load_config_string</a></div><div class="ttdeci">int knet_framework_config_load_config_string(kframework_config_t *c, const char *config_string)</div><div class="ttdoc">从配置字符串加载配置 </div></div>
<div class="ttc" id="a00111_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a_html_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a"><div class="ttname"><a href="a00111_ga03a86f8b8fc13e6fb8f1ca75e7f14d7a.html#ga03a86f8b8fc13e6fb8f1ca75e7f14d7a">knet_framework_acceptor_config_set_client_cb</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_client_cb(kframework_acceptor_config_t *c, knet_channel_ref_cb_t cb)</div><div class="ttdoc">设置客户端回调函数 </div><div class="ttdef"><b>Definition:</b> framework_config.c:172</div></div>
<div class="ttc" id="a00009_html"><div class="ttname"><a href="a00009.html">_framework_acceptor_config_t</a></div><div class="ttdef"><b>Definition:</b> framework_config.c:29</div></div>
<div class="ttc" id="a00111_ga42497b09d9d0c4039a062ff750ead0a9_html_ga42497b09d9d0c4039a062ff750ead0a9"><div class="ttname"><a href="a00111_ga42497b09d9d0c4039a062ff750ead0a9.html#ga42497b09d9d0c4039a062ff750ead0a9">knet_framework_config_set_worker_timer_freq</a></div><div class="ttdeci">void knet_framework_config_set_worker_timer_freq(kframework_config_t *c, time_t freq)</div><div class="ttdoc">设置工作线程内定时器分辨率 </div><div class="ttdef"><b>Definition:</b> framework_config.c:103</div></div>
<div class="ttc" id="a00111_gacf0d08bb6f135c12326d30acad7456f1_html_gacf0d08bb6f135c12326d30acad7456f1"><div class="ttname"><a href="a00111_gacf0d08bb6f135c12326d30acad7456f1.html#gacf0d08bb6f135c12326d30acad7456f1">knet_framework_connector_config_set_connect_timeout</a></div><div class="ttdeci">void knet_framework_connector_config_set_connect_timeout(kframework_connector_config_t *c, int timeout)</div><div class="ttdoc">设置连接器连接超时 </div><div class="ttdef"><b>Definition:</b> framework_config.c:203</div></div>
<div class="ttc" id="a00111_ga681a7f8e071507cc60f8f56043fe4443_html_ga681a7f8e071507cc60f8f56043fe4443"><div class="ttname"><a href="a00111_ga681a7f8e071507cc60f8f56043fe4443.html#ga681a7f8e071507cc60f8f56043fe4443">knet_framework_config_new_acceptor</a></div><div class="ttdeci">kframework_acceptor_config_t * knet_framework_config_new_acceptor(kframework_config_t *c)</div><div class="ttdoc">建立监听器配置 </div><div class="ttdef"><b>Definition:</b> framework_config.c:119</div></div>
<div class="ttc" id="a00011_html"><div class="ttname"><a href="a00011.html">_framework_connector_config_t</a></div><div class="ttdef"><b>Definition:</b> framework_config.c:39</div></div>
<div class="ttc" id="a00111_ga671b44cb682198b418b21749e6b2fdbe_html_ga671b44cb682198b418b21749e6b2fdbe"><div class="ttname"><a href="a00111_ga671b44cb682198b418b21749e6b2fdbe.html#ga671b44cb682198b418b21749e6b2fdbe">knet_framework_connector_config_set_client_max_recv_buffer_length</a></div><div class="ttdeci">void knet_framework_connector_config_set_client_max_recv_buffer_length(kframework_connector_config_t *c, int max_recv_buffer_length)</div><div class="ttdoc">设置连接器接收缓冲区最大长度 </div><div class="ttdef"><b>Definition:</b> framework_config.c:223</div></div>
<div class="ttc" id="a00111_ga44e90ae8fe6b358dbcd77c447ead94fc_html_ga44e90ae8fe6b358dbcd77c447ead94fc"><div class="ttname"><a href="a00111_ga44e90ae8fe6b358dbcd77c447ead94fc.html#ga44e90ae8fe6b358dbcd77c447ead94fc">knet_framework_acceptor_config_set_client_max_recv_buffer_length</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_client_max_recv_buffer_length(kframework_acceptor_config_t *c, int max_recv_buffer_length)</div><div class="ttdoc">设置客户端接收缓冲区最大长度 </div><div class="ttdef"><b>Definition:</b> framework_config.c:182</div></div>
<div class="ttc" id="a00111_ga32b058fe0a17d4a609097157761bb9f1_html_ga32b058fe0a17d4a609097157761bb9f1"><div class="ttname"><a href="a00111_ga32b058fe0a17d4a609097157761bb9f1.html#ga32b058fe0a17d4a609097157761bb9f1">knet_framework_connector_config_set_client_max_send_list_count</a></div><div class="ttdeci">void knet_framework_connector_config_set_client_max_send_list_count(kframework_connector_config_t *c, int max_send_list_count)</div><div class="ttdoc">设置连接器发送链表最大长度 </div><div class="ttdef"><b>Definition:</b> framework_config.c:218</div></div>
<div class="ttc" id="a00111_ga470f4acf8c70060852d435753375fa3b_html_ga470f4acf8c70060852d435753375fa3b"><div class="ttname"><a href="a00111_ga470f4acf8c70060852d435753375fa3b.html#ga470f4acf8c70060852d435753375fa3b">knet_framework_config_set_worker_thread_count</a></div><div class="ttdeci">void knet_framework_config_set_worker_thread_count(kframework_config_t *c, int worker_thread_count)</div><div class="ttdoc">设置工作线程数量，默认为单线程 </div><div class="ttdef"><b>Definition:</b> framework_config.c:97</div></div>
<div class="ttc" id="a00111_ga135342b1a0a31db4d614ee96a76d3e46_html_ga135342b1a0a31db4d614ee96a76d3e46"><div class="ttname"><a href="a00111_ga135342b1a0a31db4d614ee96a76d3e46.html#ga135342b1a0a31db4d614ee96a76d3e46">knet_framework_config_new_connector</a></div><div class="ttdeci">kframework_connector_config_t * knet_framework_config_new_connector(kframework_config_t *c)</div><div class="ttdoc">建立连接器配置 </div><div class="ttdef"><b>Definition:</b> framework_config.c:134</div></div>
<div class="ttc" id="a00111_ga0f1a47656155b56aa812b07d44a8aa81_html_ga0f1a47656155b56aa812b07d44a8aa81"><div class="ttname"><a href="a00111_ga0f1a47656155b56aa812b07d44a8aa81.html#ga0f1a47656155b56aa812b07d44a8aa81">knet_framework_acceptor_config_set_client_heartbeat_timeout</a></div><div class="ttdeci">void knet_framework_acceptor_config_set_client_heartbeat_timeout(kframework_acceptor_config_t *c, int timeout)</div><div class="ttdoc">设置客户端心跳超时 </div><div class="ttdef"><b>Definition:</b> framework_config.c:167</div></div>
<div class="ttc" id="a00111_ga186f2fb032c5b2350e990c63b5aa628e_html_ga186f2fb032c5b2350e990c63b5aa628e"><div class="ttname"><a href="a00111_ga186f2fb032c5b2350e990c63b5aa628e.html#ga186f2fb032c5b2350e990c63b5aa628e">knet_framework_connector_config_set_heartbeat_timeout</a></div><div class="ttdeci">void knet_framework_connector_config_set_heartbeat_timeout(kframework_connector_config_t *c, int timeout)</div><div class="ttdoc">设置连接器心跳超时 </div><div class="ttdef"><b>Definition:</b> framework_config.c:198</div></div>
<div class="ttc" id="a00111_ga984a212938eb7d5b79fae88c5eeb1644_html_ga984a212938eb7d5b79fae88c5eeb1644"><div class="ttname"><a href="a00111_ga984a212938eb7d5b79fae88c5eeb1644.html#ga984a212938eb7d5b79fae88c5eeb1644">knet_framework_connector_config_set_auto_reconnect</a></div><div class="ttdeci">void knet_framework_connector_config_set_auto_reconnect(kframework_connector_config_t *c, int auto_reconnect)</div><div class="ttdoc">设置连接器自动重连 </div><div class="ttdef"><b>Definition:</b> framework_config.c:208</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 24日 星期五 11:53:43 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
